package org.jason.model.user.dtos;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@ApiModel("登录表单")
@Data
public class LoginDto {

    @ApiModelProperty("账号登录(可使用用户名、手机号和邮箱)")
    @NotBlank(message = "账号为空")
    private String account;

    @ApiModelProperty("密码")
    @NotBlank(message = "密码为空")
    private String password;
}
